home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
9-Digit Zip Code Directory
/
9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO
/
z4src.zip
/
CLTOKEN.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-02
|
3KB
|
116 lines
//----------------------------------------------------------------------------
// MODULE DESCRIPTION
//
// Module: class.hpp
// Title: C++ Class Libraries
// Notice: John M. Weeder
// Copyright (c) 1993. All rights reserved.
// This module contains proprietary information and should be
// treated as confidential.
//
//----------------------------------------------------------------------------
// MAINTENANCE HISTORY
//
// $Workfile$
// $Revision$
// $Author$
// $Date$
// $Log$
//
//----------------------------------------------------------------------------
// MODULE NARRATIVE
//
// This module contains code for the class CL_TOKEN.
//
// The code in this module may be written in C++ or C.
//
// This module is portable to:
// DOS 3.X+
// MS Windows 3.X+
// OS/2 2.X+
// OS/2 2.0 PM
//
// The following compilers are supported:
// MSC 6.0A
// MSC/C++ 7.0
// Borland C++ 3.1 for DOS
// Borland C++ 1.0 for OS/2 2.X
//
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Class CL_TOKEN
//----------------------------------------------------------------------------
#define CL_TOKEN_PARENT CL_FILE
class CLASSTYPE CL_TOKEN : public CL_TOKEN_PARENT
{
PVOID pv; // Tokenizer data
public:
FN_M CL_TOKEN(PCSZ = NULL, FLAG32 = 0, PPSZ = NULL, PPSZ = NULL);
FN_M CL_TOKEN(RCCL_TOKEN);
virtual FN_M ~CL_TOKEN();
BOOL FN_M ClearEol()
{
return FileTokenClearEol(hf);
}
virtual BOOL FN_M Destroy(BOOL = TRUE);
virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
SHORT FN_M Keyword()
{
return FileTokenKeyword(hf);
}
TOKEN FN_M Next()
{
return FileTokenNext(hf);
}
TOKEN FN_M NextLine(SHORT sOp = 0)
{
return FileTokenNextLine(hf, sOp);
}
TOKEN FN_M NextNonSpace(SHORT sOp)
{
return FileTokenNextNonSpace(hf, sOp);
}
BOOL FN_M Open(PCSZ pcsz, FLAG32 fl = 0, PPSZ ppszKey = NULL, PPSZ ppszOp = NULL)
{
return FileTokenOpen(&hf, pcsz, fl, ppszKey, ppszOp);
}
BOOL FN_M Operator()
{
return FileTokenOperator(hf);
}
RCCL_TOKEN FN_M operator=(RCCL_TOKEN);
virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
PCSZ FN_M Text()
{
return FileTokenText(hf);
}
TOKEN FN_M Token()
{
return FileTokenType(hf);
}
BOOL FN_MV TokenError(PCSZ pcsz, ...)
{
va_list marker;
va_start(marker, pcsz);
FileErrorV(pcsz, marker);
va_end(marker);
return FALSE;
}
LONG FN_M Value()
{
return FileTokenValue(hf);
}
#if COMPILE_DEBUG
static VOID FN_M Print(PCCL_TOKEN = NULL, PCSZ = NULL, SIZET = 0);
static BOOL FN_M Test(SHORT = 0);
#endif
};
//----------------------------------------------------------------------------
//------------------------------- End of File --------------------------------
//----------------------------------------------------------------------------